<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>积分商城</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="{{ asset('bootstrap/css/bootstrap.min.css') }}">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="{{ asset('client/css/font-awesome.min.css') }}">
    <!-- Ionicons -->
    <link rel="stylesheet" href="{{ asset('client/css/ionicons.min.css') }}">
    <!-- Theme style -->
    <link rel="stylesheet" href="{{ asset('dist/css/AdminLTE.min.css') }}">
    <!-- iCheck -->
    <link rel="stylesheet" href="{{ asset('plugins/iCheck/square/blue.css') }}">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
    <script src="{{ asset('client/js/html5shiv.min.js') }}"></script>
    <script src="{{ asset('client/js/respond.min.js') }}"></script>
    <script src="{{ asset('client/layer/layer.js') }}"></script>
</head>
<body class="hold-transition login-page" style="background-color:#8fb5ff">
<div class="login-box">
    <div class="login-logo" style="height: 64px;">
        <a href="#">
        <div style="width:80px;height:64px;float:left;">
            <img src="{{ asset('images/logo.png') }}" width="80px">
        </div>
        <div style="width:280px;height:64px;float:left;line-height:100px;">
            <b style="font-size: 20px;font-family: 黑体;padding-top:30px;">　保祥云商城后台管理系统</b>
        </div>
        </a>
            <span id="msg" style="display: none">
                @foreach ($errors->all() as $error)
                    <div style="width: 100%;height: 30px;">
                        <span style="color: red;display: block; width: 400px;text-align: center;font-size: 20px;line-height: 30px;">{{ $error }}</span>
                    </div>
                @endforeach
            </span>
            <script type="text/javascript">
                var _msg = $('#msg div span').text();
                console.log(_msg);
                if(_msg != ''){
                    layer.msg(_msg);
                }
            </script>
    </div>
    <!-- /.login-logo -->
    <div class="login-box-body">


        <form action="{{ url('admin/home ')}}" method="post">
            {{csrf_field()}}
            <div class="form-group has-feedback">
                <input type="text" class="form-control" placeholder="用户名" name="username" autofocus required>
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input type="password" class="form-control" placeholder="密码" name="password" required>
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="row">
                <div class="col-xs-8">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="验证码" name="code" minlength="4" maxlength="4" required />
                    </div>
                </div>
                <!-- /.col -->
                <div class="col-xs-4">
                    <img src="{{url('admin/captcha')}}" onclick="this.src='{{ url('admin/captcha') }}?'+Math.random()" style="width: 80px; cursor:pointer" alt="点击刷新验证码">
                </div>
                <!-- /.col -->
            </div>
            <div class="row">
                <div class="col-xs-8">
                    <div class="checkbox icheck">

                    </div>
                </div>
                <!-- /.col -->
                <div class="col-xs-4">
                    <button type="submit" class="btn btn-primary btn-block btn-flat">登 录</button>
                </div>
                <!-- /.col -->
            </div>
        </form>



        <!-- /.social-auth-links -->

    </div>
    <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<!-- jQuery 2.2.3 -->
<script src="/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/bootstrap/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="/plugins/iCheck/icheck.min.js"></script>
<script>

    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
</body>
</html>
